
package com.monodaipoly2.servicio;

import com.google.appengine.api.datastore.Key;
import com.monodaipoly2.dao.RolDAO;
import com.monodaipoly2.persistencia.Rol;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Required;
import org.springframework.stereotype.Service;

@Service("rolServicio")
public class RolServicioImpl implements RolServicio{
    
   private RolDAO rolDAO;
   
    @Autowired
    @Required
    public void setRolDAO(RolDAO rolDAO){
        this.rolDAO=rolDAO;
    }

    @Override
    public Rol getRol(Key idRol) {
        return rolDAO.find(Rol.class, idRol);
    }




    
    
}
